'''
Created on 2012-7-26
字典，相当与map
@author: root
'''
dictA = {'server':'db.diveintopy','database':'rtrtr'}
print(dictA['server'])
#不存在到键值抛出异常
#dictA['db']
#修改
dictA['server']='localserver'
#添加
dictA['user']='admin'
print(dictA)
b={1000:['kb','mb','gb','tb'],1024:['kib','mib','gib']}

print(b[1000][3])

